package com.hotel.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 房间视图对象
 */
public class RoomVO {
    
    private Long id;
    
    private String roomNumber;
    
    private Long roomTypeId;
    
    private String roomTypeName;
    
    private String roomTypeCode;
    
    private Integer floor;
    
    private String status;
    
    private String statusName;
    
    private BigDecimal price;
    
    private String description;
    
    private String facilities;
    
    private String remarks;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    
    // 扩展字段
    private BigDecimal area;
    
    private Integer maxOccupancy;
    
    private Integer bedCount;
    
    private String bedType;
    
    private String imageUrl;
    
    private String currentGuestName;
    
    private String currentGuestPhone;
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String currentCheckinDate;
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String currentCheckoutDate;
    
    private Integer totalReservations;
    
    private BigDecimal totalRevenue;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastCleanTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastMaintenanceTime;
    
    // 构造函数
    public RoomVO() {}
    
    // Getter和Setter方法
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getRoomNumber() {
        return roomNumber;
    }
    
    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }
    
    public Long getRoomTypeId() {
        return roomTypeId;
    }
    
    public void setRoomTypeId(Long roomTypeId) {
        this.roomTypeId = roomTypeId;
    }
    
    public String getRoomTypeName() {
        return roomTypeName;
    }
    
    public void setRoomTypeName(String roomTypeName) {
        this.roomTypeName = roomTypeName;
    }
    
    public String getRoomTypeCode() {
        return roomTypeCode;
    }
    
    public void setRoomTypeCode(String roomTypeCode) {
        this.roomTypeCode = roomTypeCode;
    }
    
    public Integer getFloor() {
        return floor;
    }
    
    public void setFloor(Integer floor) {
        this.floor = floor;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public String getStatusName() {
        return statusName;
    }
    
    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }
    
    public BigDecimal getPrice() {
        return price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getFacilities() {
        return facilities;
    }
    
    public void setFacilities(String facilities) {
        this.facilities = facilities;
    }
    
    public String getRemarks() {
        return remarks;
    }
    
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    
    public BigDecimal getArea() {
        return area;
    }
    
    public void setArea(BigDecimal area) {
        this.area = area;
    }
    
    public Integer getMaxOccupancy() {
        return maxOccupancy;
    }
    
    public void setMaxOccupancy(Integer maxOccupancy) {
        this.maxOccupancy = maxOccupancy;
    }
    
    public Integer getBedCount() {
        return bedCount;
    }
    
    public void setBedCount(Integer bedCount) {
        this.bedCount = bedCount;
    }
    
    public String getBedType() {
        return bedType;
    }
    
    public void setBedType(String bedType) {
        this.bedType = bedType;
    }
    
    public String getImageUrl() {
        return imageUrl;
    }
    
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    
    public String getCurrentGuestName() {
        return currentGuestName;
    }
    
    public void setCurrentGuestName(String currentGuestName) {
        this.currentGuestName = currentGuestName;
    }
    
    public String getCurrentGuestPhone() {
        return currentGuestPhone;
    }
    
    public void setCurrentGuestPhone(String currentGuestPhone) {
        this.currentGuestPhone = currentGuestPhone;
    }
    
    public String getCurrentCheckinDate() {
        return currentCheckinDate;
    }
    
    public void setCurrentCheckinDate(String currentCheckinDate) {
        this.currentCheckinDate = currentCheckinDate;
    }
    
    public String getCurrentCheckoutDate() {
        return currentCheckoutDate;
    }
    
    public void setCurrentCheckoutDate(String currentCheckoutDate) {
        this.currentCheckoutDate = currentCheckoutDate;
    }
    
    public Integer getTotalReservations() {
        return totalReservations;
    }
    
    public void setTotalReservations(Integer totalReservations) {
        this.totalReservations = totalReservations;
    }
    
    public BigDecimal getTotalRevenue() {
        return totalRevenue;
    }
    
    public void setTotalRevenue(BigDecimal totalRevenue) {
        this.totalRevenue = totalRevenue;
    }
    
    public LocalDateTime getLastCleanTime() {
        return lastCleanTime;
    }
    
    public void setLastCleanTime(LocalDateTime lastCleanTime) {
        this.lastCleanTime = lastCleanTime;
    }
    
    public LocalDateTime getLastMaintenanceTime() {
        return lastMaintenanceTime;
    }
    
    public void setLastMaintenanceTime(LocalDateTime lastMaintenanceTime) {
        this.lastMaintenanceTime = lastMaintenanceTime;
    }
    
    @Override
    public String toString() {
        return "RoomVO{" +
                "id=" + id +
                ", roomNumber='" + roomNumber + '\'' +
                ", roomTypeId=" + roomTypeId +
                ", roomTypeName='" + roomTypeName + '\'' +
                ", roomTypeCode='" + roomTypeCode + '\'' +
                ", floor=" + floor +
                ", status='" + status + '\'' +
                ", statusName='" + statusName + '\'' +
                ", price=" + price +
                ", description='" + description + '\'' +
                ", facilities='" + facilities + '\'' +
                ", remarks='" + remarks + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", area=" + area +
                ", maxOccupancy=" + maxOccupancy +
                ", bedCount=" + bedCount +
                ", bedType='" + bedType + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", currentGuestName='" + currentGuestName + '\'' +
                ", currentGuestPhone='" + currentGuestPhone + '\'' +
                ", currentCheckinDate='" + currentCheckinDate + '\'' +
                ", currentCheckoutDate='" + currentCheckoutDate + '\'' +
                ", totalReservations=" + totalReservations +
                ", totalRevenue=" + totalRevenue +
                ", lastCleanTime=" + lastCleanTime +
                ", lastMaintenanceTime=" + lastMaintenanceTime +
                '}';
    }
}